//
//  GRRefusedHead.m
//  test
//
//  Created by 李彦宏 on 2018/3/12.
//  Copyright © 2018年 朱圳. All rights reserved.
//section ==1  head

#import "GRRefusedHead.h"

@implementation GRRefusedHead
//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    UILabel *satelable=[[UILabel alloc] init];
    [satelable setBackgroundColor:[UIColor clearColor]];
    [satelable setTextColor:[UIColor blackColor]];
    [satelable setFont:[UIFont systemFontOfSize:15]];
    satelable.textAlignment=NSTextAlignmentCenter;
    satelable.text=@"日期";
    [self.contentView addSubview:satelable];
    satelable.frame = CGRectMake(15, 8, 35, 25);
    
    UILabel *lb1=[[UILabel alloc] init];
    [lb1 setBackgroundColor:[UIColor clearColor]];
    [lb1 setTextColor:[UIColor blackColor]];
    [lb1 setFont:[UIFont systemFontOfSize:15]];
    lb1.textAlignment=NSTextAlignmentCenter;
    lb1.text=@"状态";
    [self.contentView addSubview:lb1];
    lb1.frame = CGRectMake(ScreenWidth/2-20, 8, 40, 25);
    
    UILabel *lb2=[[UILabel alloc] init];
    [lb2 setBackgroundColor:[UIColor clearColor]];
    [lb2 setTextColor:[UIColor blackColor]];
    [lb2 setFont:[UIFont systemFontOfSize:15]];
    lb2.textAlignment=NSTextAlignmentCenter;
    lb2.text=@"操作";
    [self.contentView addSubview:lb2];
    lb2.frame = CGRectMake(ScreenWidth-55, 8, 40, 25);
    
}



@end
